package serviceimpl;

import entity.UserDetail;
import mapper.UserDetailMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import service.UserDetailService;

@Service
public class UserDetailServiceImpl implements UserDetailService {
    @Autowired
    UserDetailMapper userDetailMapper;

    @Override
    @Transactional
    public int insert(UserDetail userDetail) {
        return userDetailMapper.insertSelective(userDetail);
    }
}
